﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using System.Drawing.Drawing2D;

namespace QuadRemote.Panels
{
    public class DrawingPanel : Panel
    {
        public DrawingPanel()
        {
            this.DoubleBuffered = true;
            
            //SetStyle(ControlStyles.SupportsTransparentBackColor, true);
            
        }


        /*protected override void OnPaintBackground(System.Windows.Forms.PaintEventArgs e)
        {
            Rectangle rc = new Rectangle(0, 0, this.ClientSize.Width, this.ClientSize.Height);
            e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(64, this.BackColor)), rc);
            using (LinearGradientBrush brush = new LinearGradientBrush(rc, Color.FromArgb(190,BackColor), Color.FromArgb(110,BackColor), 45F))
            {
                e.Graphics.FillRectangle(brush, rc);
            }
        }*/
    }
}
